-- GENERATED SPELL FOR [Icehorn] --


function spell0_32361(pUnit, Event) --@Romp,Self--
pUnit:FullCastSpellOnTarget(57468,pUnit)
pUnit:RegisterEvent('Sorts_32361', 568, 1)
end

function Sorts_32361(pUnit, Event)
local choix_sorts_32361 = math.random(0, 0)
if choix_sorts_32361 == 0 then
pUnit:RegisterEvent('spell0_32361', 1, 1)
end
end

function mob32361_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32361', math.random(1500, 3000), 1)
end

function mob32361_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32361_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32361_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32361, 1, 'mob32361_Action')
RegisterUnitEvent(32361, 2, 'mob32361_Leave')
RegisterUnitEvent(32361, 3, 'mob32361_Kill')
RegisterUnitEvent(32361, 4, 'mob32361_Die')
